cnt = 0

leaf = 1
for i in range(3):
    leaf *= 4
    cnt += leaf

print('cnt:', cnt)
